Repository navigation
refactor: group viewport/bridge state bags and decouple meta/shader boot order (desloppify wave 5D-1) - #113
Merged
Merged
Conversation
…oot order (desloppify wave 5D-1) - Group RenderBridge (56 -> 11 fields) and ViewportRenderer (59 -> 14 fields) into cohesive pipeline-owned sub-structs in src/render/viewport/state.rs and crates/runtime/or-renderer/src/viewport/state.rs, replacing the raw 4-tuple deferred_pipelines with named DeferredPipelines. - Consolidate metadata host bootstrap into or_title::schema::init_meta_host so ragepar_names::load_from, install_names_snapshot, and install_snapshot run in guaranteed order inside a single Once for GUI, photo/self-check, and CLI; split TITLE_INDEX/TITLE_PUBLIC_INDEX in hash_index.rs and remove the GUI-only src/main.rs ordering call. - Eliminate global DRAWN_BY_HARDWARE / drawn_by_hardware in favor of explicit hardware: bool plumbing through rdna_bind::shading, or-cli, gta6_shaders, gta6_frame_light, and RenderBridge::with_hardware_adapter; replace silent-ignore OnceLock caches in kept.rs and kept_dx12.rs with reconfigurable stores and regression tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves 3 desloppify review items (wave 5D-1):
abstraction_fitness::viewport_render_bridge_monolithic_state_bags: GroupedRenderBridge(56 -> 11 fields) into pipeline-owned sub-structs (FrameState,DocumentMeshCache,GameSceneCache,Gta6MeshletState,DressedPedGpu,ParticleGpuCache,PhotoCaptureState) insrc/render/viewport/state.rsandViewportRenderer(59 -> 14 fields) into cohesive sub-structs (ViewportTargets,CameraUniformGpu,LineOverlayGpu,PlainPipelines,Gta6GpuState,DeferredResourceswith namedDeferredPipelines,SceneLighting,EnvironmentState,ParticleGpuState,SkinningState) incrates/runtime/or-renderer/src/viewport/state.rs.initialization_coupling::meta_schema_and_parser_names_boot_order: Consolidated metadata host initialization intoor_title::schema::init_meta_hostsoragepar_names::load_from,install_names_snapshot, andinstall_snapshotexecute in guaranteed order inside oneOncefor GUI,--photo/--self-check, and CLI; splitTITLE_INDEX/TITLE_PUBLIC_INDEXinhash_index.rsand removed the GUI-onlysrc/main.rsordering call.initialization_coupling::shader_cache_and_hardware_flag_boot_order: Deleted globalDRAWN_BY_HARDWARE/drawn_by_hardwareand plumbedhardware: boolexplicitly throughrdna_bind::shading,or-cli,gta6_shaders,gta6_frame_light, andRenderBridge::with_hardware_adapter; replaced silent-ignoreOnceLockcaches inkept.rsandkept_dx12.rswith reconfigurable stores and unit tests.Verification
just ready: 3,424 tests passed in 306 binaries, 0 regressions, 0 new clippy warnings (only the 4 pre-existingorigin/mainfailures:gta6_hair.rs:411,gta6_meshlets.rsshell_budget,i18n::gates, andthe_world_verbs_answer_for_gta5_through_its_title).or-title,or-shader-front,or-renderer, andopenrageall passed.just self-check: 140/140 passed.